Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| #!/bin/sh | |
| set -eu | |
| # Runtime files used by the dnsmasq dhcp-script hook. Final hosts files live in | |
| # HOSTS_DIR. Temporary files are kept out of HOSTS_DIR. | |
| RUNTIME_DIR=${RUNTIME_DIR:-/run/dnsmasq} | |
| HOSTS_DIR=${HOSTS_DIR:-${RUNTIME_DIR}/hosts.d} | |
| TEMP_DIR=$RUNTIME_DIR |
A pattern for building personal knowledge bases using LLMs.
This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.
Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.
A beginner-friendly guide to understanding and fixing AMD GPU crashes, freezes, and instability on Linux.
This guide covers creating a master keypair (private and public key, along with an automatically generated encryption subKey), creation of subKeys from that master key to use for signing, and using said keys on Git and Github.
Passphrases are optional but strongly encouraged.
gpg --full-generate-key and enter following settings:RSA and RSA4096 bits0 (infinite; does not expire)Comment is username)| #!/bin/bash | |
| ## | |
| # Helper to find the user configured name of an activity, by its ID | |
| function getActivityName() { | |
| qdbus org.kde.ActivityManager /ActivityManager/Activities \ | |
| org.kde.ActivityManager.Activities.ActivityName "$1" | |
| } | |
| ## |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Local HTML5 Video Player</title> | |
| </head> | |
| <body> | |
| <style> | |
| * { box-sizing: border-box; } |
| /* The world's smallest Brainfuck interpreter in C, by Kang Seonghoon | |
| * http://j.mearie.org/post/1181041789/brainfuck-interpreter-in-2-lines-of-c */ | |
| s[99],*r=s,*d,c;main(a,b){char*v=1[d=b];for(;c=*v++%93;)for(b=c&2,b=c%7?a&&(c&17 | |
| ?c&1?(*r+=b-1):(r+=b-1):syscall(4-!b,b,r,1),0):v;b&&c|a**r;v=d)main(!c,&a);d=v;} |